import Vue from "vue";
import VueRouter from "vue-router";
import login from "@/views/user/login.vue";
import user from "@/views/user/user.vue";
import home from "@/views/home/home.vue";
import movie from "@/views/movie/movie.vue";
import qa from "@/views/qa/qa.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/login",
    name: "login",
    component: login
  },
  {
    path: "/user",
    name: "user",
    component: user
  },
  {
    path: "/home",
    name: "home",
    component: home
  },
  {
    path: "/movie",
    name: "movie",
    component: movie
  },
  {
    path: "/qa",
    name: "qa",
    component: qa
  }
];

const router = new VueRouter({
  routes
});

export default router;
